package at.fhj.itm11.forum.gui.pages;

import java.util.List;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class ShowPostPage extends BasePage {

	@FindBy(xpath = "//a[contains(text(), 'Beitrag hinzu')]")
	public WebElement addPostLink;
	
	@FindBy(xpath="//body//div[contains(@id,'content')]//table//a")
	public WebElement commentLink;
	
	@FindBy(xpath="//body//form//textarea")
	public WebElement commentField;
	
	@FindBy(xpath="//body//form//button[contains(@id,'addComment')]")
	public WebElement commentButton;
	
	@FindBy(xpath="//body//div[contains(@id,'content')]//table//tr[contains(@id,'postTable:0:commentList:0')]//td")
	public WebElement commentToFirstPost;

	@FindBy(xpath = "//button[contains(@id, 'positiveRating')]")
	public List<WebElement> positiveRatingButtons;
	
	@FindBy(xpath = "//button[contains(@id, 'negativeRating')]")
	public List<WebElement> negativeRatingButtons;
}
